package com.huak.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

/**
 * @author LR2SD
 * @description
 * @date 2019-04-20 14:47
 */

@Controller
public class HelloWorldViewController {

    @RequestMapping("")
    public String index(Model model) {
        //model.addAttribute("message","hello");
        System.out.println("index method");
        return "index";
    }

    @RequestMapping("hello")
    public String hello() {
        //model.addAttribute("message","hello");

        return "hello";
    }


}
